package com.server.common.CustomException;

/**
 * Created by 金贤哲 on 2017/3/15 0015.
 */
public class CustomExcption extends Exception {
        private static final long serialVersionUID = -238091758285157331L;
        private String errCode;
        private String errMsg;
        public CustomExcption() {
        }

        public CustomExcption(String message, Throwable cause) {
            super(message, cause);
        }

        public CustomExcption(String message) {
            super(message);
        }

        public CustomExcption(Throwable cause) {
            super(cause);
        }

        public CustomExcption(String errCode, String errMsg) {
            super(errCode + ":" + errMsg);
            this.errCode = errCode;
            this.errMsg = errMsg;
        }
        public String getErrCode() {
            return this.errCode;
        }
        public String getErrMsg() {
            return this.errMsg;
        }
}
